/**
 * 
 */
package com.base.myproject.client.busi.b2c.shopping;

import java.io.Serializable;

/**
 * @author zgw 2009-8-15 上午09:42:35 javazgw@gmail.com
 */
public class ShopCartObject implements Serializable {

	String icode;
	String b2cgcode;
	String b2cgname;
	String gcode;
	String gname;
	String shopdate;
	String qty;
	String price;
	String totle;
	String discountprice;
	String bcode;
	String bname;
	String ccode;
	String finalprice;//最终价格，就是原价和折扣价取小的那个

	public ShopCartObject() {

	}

	/**
	 * 检查数据的完整性，如果数量，价格，商品编号，登录人名未全部录入，则信息缺失，要报错误
	 * 
	 * @return
	 */
	public boolean check() {
		if (qty == null || qty.equals("") || price == null || price.equals("")
				|| bname == null || bname.equals("") || b2cgcode == null
				|| b2cgcode.equals("")) {
			return false;
		}
		return true;
	}

	/**
	 * @return the icode
	 */
	public String getIcode() {
		return icode;
	}

	/**
	 * @param icode
	 *            the icode to set
	 */
	public void setIcode(String icode) {
		this.icode = icode;
	}

	/**
	 * @return the b2cgcode
	 */
	public String getB2cgcode() {
		return b2cgcode;
	}

	/**
	 * @param b2cgcode
	 *            the b2cgcode to set
	 */
	public void setB2cgcode(String b2cgcode) {
		this.b2cgcode = b2cgcode;
	}

	/**
	 * @return the b2cgname
	 */
	public String getB2cgname() {
		return b2cgname;
	}

	/**
	 * @param b2cgname
	 *            the b2cgname to set
	 */
	public void setB2cgname(String b2cgname) {
		this.b2cgname = b2cgname;
	}

	/**
	 * @return the gcode
	 */
	public String getGcode() {
		return gcode;
	}

	/**
	 * @param gcode
	 *            the gcode to set
	 */
	public void setGcode(String gcode) {
		this.gcode = gcode;
	}

	/**
	 * @return the gname
	 */
	public String getGname() {
		return gname;
	}

	/**
	 * @param gname
	 *            the gname to set
	 */
	public void setGname(String gname) {
		this.gname = gname;
	}

	/**
	 * @return the shopdate
	 */
	public String getShopdate() {
		return shopdate;
	}

	/**
	 * @param shopdate
	 *            the shopdate to set
	 */
	public void setShopdate(String shopdate) {
		this.shopdate = shopdate;
	}

	/**
	 * @return the qty
	 */
	public String getQty() {
		return qty;
	}

	/**
	 * @param qty
	 *            the qty to set
	 */
	public void setQty(String qty) {
		this.qty = qty;
	}

	/**
	 * @return the price
	 */
	public String getPrice() {
		return price;
	}

	/**
	 * @param price
	 *            the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}

	/**
	 * @return the totle
	 */
	public String getTotle() {
		return totle;
	}

	/**
	 * @param totle
	 *            the totle to set
	 */
	public void setTotle(String totle) {
		this.totle = totle;
	}

	/**
	 * @return the discountprice
	 */
	public String getDiscountprice() {
		return discountprice;
	}

	/**
	 * @param discountprice
	 *            the discountprice to set
	 */
	public void setDiscountprice(String discountprice) {
		this.discountprice = discountprice;
	}

	/**
	 * @return the bcode
	 */
	public String getBcode() {
		return bcode;
	}

	/**
	 * @param bcode
	 *            the bcode to set
	 */
	public void setBcode(String bcode) {
		this.bcode = bcode;
	}

	/**
	 * @return the bname
	 */
	public String getBname() {
		return bname;
	}

	/**
	 * @param bname
	 *            the bname to set
	 */
	public void setBname(String bname) {
		this.bname = bname;
	}

	/**
	 * @return the ccode
	 */
	public String getCcode() {
		return ccode;
	}

	/**
	 * @param ccode the ccode to set
	 */
	public void setCcode(String ccode) {
		this.ccode = ccode;
	}

	/**
	 * @return the finalprice
	 */
	public String getFinalprice() {
		return finalprice;
	}

	/**
	 * @param finalprice the finalprice to set
	 */
	public void setFinalprice(String finalprice) {
		this.finalprice = finalprice;
	}
	

}
